﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zen4SyncDashboard.DAL
{
    public partial class testSession
    {
        /// <summary>
        /// Shortcut for the last "UTC End DateTime on server" 
        /// of the clients of the Test Session.
        /// </summary>
        public DateTime EndDateTime
        {
            get
            {
                return
                    clientSessions
                    .Max(c => c.clientSession_endDateTimeOnServer)
                    .GetValueOrDefault();
            }
        }
    }
}
